package com.guet.niit.Admin.controller;

import com.guet.niit.Admin.service.ChargingService;

import java.util.Scanner;

//充电站管理

public class ChargingController {
    public void chargingMenu(){
        System.out.println("----------------");
        System.out.println("---1.充电站添加---");
        System.out.println("---2.充电站删除---");
        System.out.println("---3.充电站更改---");
        System.out.println("---4.充电站查询---");
        System.out.println("----------------");
        Scanner scanner = new Scanner(System.in);
        int option = scanner.nextInt();

        switch (option){

            //充电站添加
            case 1:
                ChargingService chargingService = new ChargingService();
                chargingService.chargingAdd();
                break;

            //充电站删除
            case 2:
                ChargingService chargingService1 = new ChargingService();
                chargingService1.chargingDelete();
                break;

            //充电站更改
            case 3:
                ChargingService chargingService2 = new ChargingService();
                chargingService2.chargingModify();
                break;

            //充电站查询
            case 4:
                ChargingService chargingService3 = new ChargingService();
                chargingService3.chargingInquire();



        }
    }
}
